/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package heartnew;

import java.util.ArrayList;

/**
 *
 * @author ThuyHuynh
 */
public class Player {
    private ArrayList<Card> cardinhand;//danh sach la bai con lai
    private ArrayList<Card> cardwinhand;//danh sach la bai an duoc
    private int isturn;//toi luot di hay chua
    private int idplayer;//ma nguoi choi
    private int score;//diem
    private int idRom;//ma phong choi
    public void ClearCard()
    {
        cardinhand.clear();
        cardwinhand .clear();
    }
    public Player(){
        cardinhand=new ArrayList<>();
        cardwinhand=new ArrayList<>();
        isturn=0;
        idplayer=0;
        score=0;
    }
    public Player(ArrayList<Card> cardinhand,ArrayList<Card> cardwinhand,int isturn,int idplayer,int score){
        this.cardinhand=cardinhand;
        this.cardwinhand=cardwinhand;
        this.isturn=isturn;
        this.idplayer=idplayer;
        this.score=score;
    }
    public Player(Player p){
        cardinhand=p.cardinhand;
        cardwinhand=p.cardwinhand;
        isturn=p.isturn;
        idplayer=p.idplayer;
        score=p.score;
    }
    /**
     * @return the ishand
     */
    public int getIsturn() {
        return isturn;
    }

    /**
     * @param ishand the ishand to set
     */
    public void setIsturn(int isturn) {
        this.isturn = isturn;
    }

    /**
     * @return the idplayer
     */
    public int getIdplayer() {
        return idplayer;
    }

    /**
     * @param idplayer the idplayer to set
     */
    public void setIdplayer(int idplayer) {
        this.idplayer = idplayer;
    }

    /**
     * @return the score
     */
    public int getScore() {
        return score;
    }

    /**
     * @param score the score to set
     */
    public void setScore(int score) {
        this.score = score;
    }

    /**
     * @return the cardinhand
     */
    public ArrayList<Card> getCardinhand() {
        return cardinhand;
    }

    /**
     * @param cardinhand the cardinhand to set
     */
    public void setCardinhand(ArrayList<Card> cardinhand) {
        this.cardinhand = cardinhand;
    }

    /**
     * @return the cardwinhand
     */
    public ArrayList<Card> getCardwinhand() {
        return cardwinhand;
    }

    /**
     * @param cardouthand the cardwinhand to set
     */
    public void setCardwinhand(ArrayList<Card> cardwinhand) {
        this.cardwinhand = cardwinhand;
    }

    /**
     * @return the idRom
     */
    public int getIdRom() {
        return idRom;
    }

    /**
     * @param idRom the idRom to set
     */
    public void setIdRom(int idRom) {
        this.idRom = idRom;
    }
    
}
